body {
    overflow: hidden;
}

.header {
    display: flex;
    align-items: center;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0 50px;
    gap: 50px;
}

.header--bg, .header--bg .header__logo path, .header--bg .header__burger line, .header__hr--mobile path {
    transition: all .3s ease-in-out;
}

.header--bg .header__button-buy {
    background: transparent;
    border: 1px solid #292929;
}

.header--bg .header__hr path {
    fill: #292929;
    fill-opacity: 0.3;
}

.header__hr {
    width: 100%;
}

.header__hr--mobile {
    display: none;
}

.header--yellow {
    background: #F4C86F;
}

.header--yellow .header__logo path, .header--yellow ~ .header__hr--mobile path {
    fill: #D1A02C;
}

.header--yellow .header__burger line {
    stroke: #D1A02C;
}

.header--orange {
    background: #E69E5F;
}

.header--orange .header__logo path, .header--orange ~ .header__hr--mobile path  {
    fill: #B57033;
}

.header--orange .header__burger line {
    stroke: #B57033;
}

.header--blue {
    background: #4681C2;
}

.header--blue .header__logo path, .header--blue ~ .header__hr--mobile path {
    fill: #17487E;
}

.header--blue .header__burger line {
    stroke: #17487E;
}

.header--red {
    background: #C84C4C;
}

.header--red .header__logo path, .header--red ~ .header__hr--mobile path {
    fill: #9E2F2F;
}

.header--red .header__burger line {
    stroke: #9E2F2F;
}

.header--green {
    background: #4E8D4C;
}

.header--green .header__logo path, .header--green ~ .header__hr--mobile path {
    fill: #255B24;
}

.header--green .header__burger line {
    stroke: #255B24;
}

.header__logo-container {
    max-width: 355px;
    flex-shrink: 1;
}

.header__logo {
    width: 100%;
    height: auto;
}

.header__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.header__main--mobile {
    display: none;
}

.header__buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 0;
    gap: 40px;
}

.header__button {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #292929;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    margin-left: 20px;
}

.header__icon--cart {
    position: relative;
}

.header__icon--cart-counter {
    width: 15px;
    height: 15px;
    top: -3px;
    right: -3px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 11px;
    background: #D53232;
    border-radius: 50%;
}

.header__language {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 5px;
    cursor: pointer;
}

.header__button-buy {
    width: 185px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #292929;
    text-decoration: none;
    background: #F4C86F;
    border-radius: 5px;
    margin-left: 10px;
}

.header__menus {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 12px 0;
}

.header__menus a {
    color: currentColor;
    text-decoration: none;
}

.header__menu {
    cursor: pointer;
    position: relative;
}

.header__menu--active .header__menu-header {
    color: #D53232;
}

.header__menu--active .header__menu-header svg {
    transform: rotate(-180deg);
}

.header__menu--active .header__menu-content {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.header__menu-header {
    transition: all .3s ease-in-out;
}

.header__menu-header svg {
    transition: all .3s ease-in-out;
}

.header__menu-header:hover {
    color: #D53232;
}

.header__menu-content {
    width: max-content;
    position: absolute;
    top: 33px;
    left: 0;
    transform: translateY(-15px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    list-style: none;
    padding: 15px 25px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: all .3s ease-in-out;
}

.header__menu-content a {
    color: #292929;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.header__menu-content a::after {
    height: 1px;
    bottom: 0px;
    background: currentColor;
}

.header__menu-content a:hover {
    opacity: 0.8;
}

.header__language--mobile {
    position: relative;
}

.header__language-btn {
    cursor: pointer;
}

.header__language-list {
    position: absolute;
    top: 35px;
    left: -15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    background: white;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    padding: 15px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

.header__language-list::before {
    content: "";
    position: absolute;
    bottom: 100%; 
    left: 15px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #292929  transparent;
    opacity: 0;
}

.header__language-list::after {
    content: "";
    position: absolute;
    bottom: calc(100% - 1px); 
    left: 16px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent white transparent;
    z-index: 2;
    opacity: 0;
}

.js-lang.active .header__language-list {
    opacity: 1;
    pointer-events: auto;
}

.header__language-list-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
}

.search-drawer {
    width: 100%;
    position: absolute;
    top: 0;
    right: -110%;
    bottom: 0;
    font-family: "Manrope";
    font-size: 13px;
    background: #FFFFFF;
    padding: 11px 15px;
    z-index: 11;
    box-sizing: border-box;
    transition: all .3s ease-in-out;
}

.search-drawer.open {
    right: 0;
}

.search-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 55px;
}

.search-drawer__logo-container {
    width: 170px;
    max-width: 70%;
}

.search-drawer__logo-container img {
    width: 100%;
    height: auto;
}

.search-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
}

.search-drawer__input-container {
    position: relative;
    margin-bottom: 20px;
}

.search-drawer__input-container input {
    width: 100%;
    font-family: "Manrope";
    font-size: 13px;
    text-transform: uppercase;
    border: none;
    border-bottom: 1px solid #292929;
    outline: none;
    padding: 16px 0;
}

.search-drawer__input-container input::placeholder {
    color: #AEAAAA;
}

.search-drawer__input-container img {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.search-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-drawer__link {
    width: max-content;
    color: #292929;
    text-decoration: none;
}

.search-drawer .header__button-buy {
    width: 160px;
    height: 40px;
    margin-top: 170px;
}

.menu-drawer {
    width: 100%;
    position: absolute;
    top: 0;
    right: -110%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    font-family: "Bounded";
    font-size: 13px;
    background: #FFFFFF;
    padding: 11px 15px;
    z-index: 11;
    box-sizing: border-box;
    transition: all .3s ease-in-out;
}

.menu-drawer.open {
    right: 0;
}

.menu-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.menu-drawer__logo-container {
    width: 170px;
    max-width: 70%;
}

.menu-drawer__logo-container img {
    width: 100%;
    height: auto;
}

.menu-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 35px 0;
}

.menu-drawer__link {
    color: #292929;
    text-transform: uppercase;
    text-decoration: none;
}

.menu-drawer__buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.menu-drawer__button {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    color: #292929;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #292929;
    border-radius: 5px;
    padding: 13px;
    background: white;          
    position: relative;           
    z-index: 2;                   
    overflow: visible;
}

.corner-border {
    border: none;
  --border-color: #292929;
  --border-width: 1px;
  --corner-length: 17px; 
  --bg: white;   
}

.corner-border svg {
    position: absolute;
    top: 10px;
    right: 10px;
}

.corner-border::before {
  content: "";
  position: absolute;
  inset: 0;                   
  border: 1px solid #292929;
  border-radius: 5px;
  pointer-events: none;
  z-index: 0;                 
}


.corner-border::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;                
  border-radius: 5px;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) top center / calc(100% - 36px) 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) bottom center / calc(100% - 36px) 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center left / 1px calc(100% - 36px) no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center right / 1px calc(100% - 36px) no-repeat;
  background-repeat: no-repeat;
  transition: all .3s ease-in-out;
}

.corner-border:hover::after {
  background:
    linear-gradient(#FFFFFF, #FFFFFF) top center / 0 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) bottom center / 0 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center left / 1px 0 no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center right / 1px 0 no-repeat;
}

.menu-drawer__button-buy {
    width: 100%;
    height: 40px;
}

.menu-drawer__footer {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.menu-drawer__socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-drawer__socials a {
    position: relative;
    color: #F4C86F;
    text-decoration: none;
}

.menu-drawer__socials sup {
    position: absolute;
    top: -5px;
    right: -5px;
}

.menu-drawer__account {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #292929;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .header {
        gap: 20px;
    } 

    .header__logo-container {
        max-width: 220px;
        flex-shrink: 1;
    }


    .header__buttons {
        gap: 20px;
    }

    .header__button {
        margin: 0;
        gap: 5px;
    }
    
    .header__button img {
        width: 16px;
        height: 16px;
    }

    .header__menu:last-child .header__menu-content {
        max-width: 100px;
    }
}

@media (max-width: 1024px) {
    .header {
        font-size: 13px;
        padding: 0 15px;
    }

    .header__button-buy {
        width: 130px;
        height: 35px;
    }

    .menu-drawer__button-buy {
        width: 100%;
        height: 40px;
    }

    .header__menus {
        gap: 30px;
    }

    .header__menu:last-child .header__menu-content {
        max-width: 100px;
        left: auto;
        right: -30px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 40px;
        justify-content: space-between;
        box-shadow: none;
    }

    .header__logo {
        max-height: 25px;
        width: auto;
    }

    .header__main {
        display: none;
    }

    .header__main--mobile {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header__button {
        width: 16px;
        height: 16px;
    }

    .header__mobile-button {
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #F4C86F;
        border-radius: 50%;
        padding: 5px;
        box-sizing: border-box;
    }
    
    .header__button img {
        width: 100%;
        height: 100%;
    }

    .header__icon--cart {
        background: #F4C86F;
    }

    .header__burger {
        width: 30px;
        margin-left: 10px;
    }

    .header__hr--mobile {
        display: block;
        height: max-content;
    }

    .header__language-list {
        top: 40px;
        left: -10px;
        gap: 14px;
        border: 1px solid #292929;
        border-radius: 8px;
        padding: 15px 10px;
    }

    .header__language-list::before {
        opacity: 1;
    }

    .header__language-list::after {
        opacity: 1;
    }
}